package cn.uikit.demo.camera

import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.lifecycle.lifecycleScope
import cn.uikit.demo.databinding.ActivityCameraTestBinding
import sivin.camera.CameraEngine
import sivin.uikit.framework.BindingActivity

open class CameraTestActivity :
    BindingActivity<ActivityCameraTestBinding>(ActivityCameraTestBinding::inflate) {

    companion object {
        fun launch(context: Context) {
            val startIntent = Intent(context, CameraTestActivity::class.java)
            context.startActivity(startIntent)
        }
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        val cameraEngine = CameraEngine(baseContext, lifecycleScope)
//        cameraEngine.desireParams = CameraDesireParams()
//        cameraEngine.configure()
//
        //设置相机输出分辨率，设置fps，设置相机的各种特性
    }
}